package com.aspose.cells.a.d;

import com.aspose.cells.Color;

public class zf extends zl implements zbg {
   private zav d;
   private Color e;
   private Color f;
   private com.aspose.cells.b.a.b.zo g;
   private String h;
   private com.aspose.cells.b.a.b.a.zi i;
   private zn j;
   private zi k;
   private float l;
   public boolean a;
   public boolean b;
   public int c;
   private float m;
   private float n;

   public zf() {
      this.l = 0.0F;
      this.a = false;
      this.b = false;
      this.c = 0;
      this.m = 0.0F;
      this.n = -1.0F;
   }

   public zf(zav var1, Color var2, com.aspose.cells.b.a.b.zo var3, String var4, boolean var5, boolean var6) {
      this(var1, var2, Color.getEmpty(), var3, var4);
      this.b = var6;
      this.a = var5;
   }

   public zf(zav var1, Color var2, com.aspose.cells.b.a.b.zo var3, float var4, String var5) {
      this.l = 0.0F;
      this.a = false;
      this.b = false;
      this.c = 0;
      this.m = 0.0F;
      this.n = -1.0F;
      this.d = var1;
      this.e = var2;
      this.f = Color.getEmpty();
      this.g = var3;
      this.h = var5;
      this.l = var4;
   }

   public zf(zav var1, Color var2, Color var3, com.aspose.cells.b.a.b.zo var4, String var5) {
      this.l = 0.0F;
      this.a = false;
      this.b = false;
      this.c = 0;
      this.m = 0.0F;
      this.n = -1.0F;
      this.d = var1;
      this.e = var2;
      this.f = var3;
      this.g = var4;
      this.h = var5;
   }

   public zf(zav var1, Color var2, com.aspose.cells.b.a.b.zo var3, String var4) {
      this.l = 0.0F;
      this.a = false;
      this.b = false;
      this.c = 0;
      this.m = 0.0F;
      this.n = -1.0F;
      this.d = var1;
      this.e = var2;
      this.f = Color.getEmpty();
      this.g = var3;
      this.h = var4;
   }

   public void a(ze var1) throws Exception {
      var1.a(this);
      if (this.c != 0) {
         zn var2 = null;
         float var3;
         switch(this.c) {
         case 1:
         case 3:
            if (!(var1 instanceof zat)) {
               var3 = this.d().k().h() / 25.4F;
               if (this.d().d()) {
                  var3 *= 1.65F;
               }

               if (this.m != 0.0F) {
                  var2 = zn.a(new com.aspose.cells.b.a.b.zo(this.l(), this.k() - var3 / 2.0F), new com.aspose.cells.b.a.b.zo(this.m, this.k() - var3 / 2.0F));
               } else {
                  var2 = zn.a(new com.aspose.cells.b.a.b.zo(this.l(), this.k() - var3 / 2.0F), new com.aspose.cells.b.a.b.zo(this.l() + this.i().b(), this.k() - var3 / 2.0F));
               }

               var2.a = new zs(this.e());
               var2.a(this.a());
               var2.a.b = var3;
               var2.a(var1);
               var2 = null;
            }
            break;
         case 2:
         case 4:
            var3 = this.d().k().h() / 15.0F;
            var2 = zn.a(new com.aspose.cells.b.a.b.zo(this.l(), this.g().e() + var3), new com.aspose.cells.b.a.b.zo(this.l() + this.i().b(), this.g().e() + var3));
            zs var4 = new zs(this.e());
            var2.a = var4;
            var2.a(this.a());
            var2.a.b = var3;
            var2.a(var1);
            var2 = zn.a(new com.aspose.cells.b.a.b.zo(this.l(), this.g().e() + 2.0F * var3 + (var3 > 1.0F ? var3 : 1.0F)), new com.aspose.cells.b.a.b.zo(this.l() + this.i().b(), this.g().e() + 2.0F * var3 + (var3 > 1.0F ? var3 : 1.0F)));
            var2.a(this.a());
            var2.a = var4;
            var2.a.b = var3;
            var2.a(var1);
         }
      }

   }

   public zav d() {
      return this.d;
   }

   public void a(zav var1) {
      this.d = var1;
   }

   public Color e() {
      return this.e;
   }

   public void a(Color var1) {
      this.e = var1;
   }

   public Color f() {
      return this.f;
   }

   public com.aspose.cells.b.a.b.zo g() {
      return this.g;
   }

   public void a(com.aspose.cells.b.a.b.zo var1) {
      this.g = var1;
   }

   public String h() {
      return this.h;
   }

   public void a(String var1) {
      this.h = var1;
   }

   public com.aspose.cells.b.a.b.a.zi a() {
      return this.i;
   }

   public void a(com.aspose.cells.b.a.b.a.zi var1) {
      this.i = var1;
   }

   public zn b() {
      return this.j;
   }

   public boolean c() {
      return false;
   }

   public com.aspose.cells.b.a.b.zt i() throws Exception {
      com.aspose.cells.b.a.b.zt var1 = zav.b(this.h, this.d);
      return var1;
   }

   public com.aspose.cells.b.a.b.zt j() {
      com.aspose.cells.b.a.b.zt var1 = zav.a(this.h, this.d);
      return var1;
   }

   public float k() {
      return this.g.e() + this.d.i();
   }

   public float l() {
      return this.g.d();
   }

   public zi m() {
      return this.k;
   }

   public float n() {
      return this.l;
   }

   public void a(float var1) {
      this.m = var1;
   }

   public void b(float var1) {
      this.n = var1;
   }
}
